﻿

Dcqtech_Form_Controls.Time = $.extend({}, Dcqtech_Form_Controls.Default);

Dcqtech_Form_Controls.Time.setEditEvent = function (id, wdInfo,$root) {
    if (wdInfo.isReadOnly != "1") {
        $root.find("[dcqtech_data='" + id + "']").on("click", function () {
            let format = "YYYY-MM-DD HH:mm";
            let date = $(this).val()
            setupDatePicker(format, "[dcqtech_data='" + id + "']", date)
        })
    }
    else {
        $root.find("[dcqtech_data='" + id + "']").prop("disabled", true);
    }
}